package com.zhangwei.expands.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @version V1.0
 * @description:
 * @title: Expands
 * @package com.zhangwei.expands.bean
 * @author: zhangwei
 * @date: 2015-12-23 上午10:23
 */
public class ComApiBean<T> implements Serializable {
    private PageEntity page;
    private String state;
    private List<T> info;

    public void setPage(PageEntity page) {
        this.page = page;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setInfo(List<T> info) {
        this.info = info;
    }

    public PageEntity getPage() {
        return page;
    }

    public String getState() {
        return state;
    }

    public List<T> getInfo() {
        return info;
    }

    public static class PageEntity {
        private int total;
        private int pagesize;
        private int page;
        private int page_total;

        public void setTotal(int total) {
            this.total = total;
        }

        public void setPagesize(int pagesize) {
            this.pagesize = pagesize;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public void setPage_total(int page_total) {
            this.page_total = page_total;
        }

        public int getTotal() {
            return total;
        }

        public int getPagesize() {
            return pagesize;
        }

        public int getPage() {
            return page;
        }

        public int getPage_total() {
            return page_total;
        }
    }

}
